import turtle


def koch(size, n):
    if n == 0:
        turtle.forward(size)
    else:
        for i in [0,60, -120, 60]:
            turtle.left(i)
            koch(size / 3, n - 1)


def main():
    turtle.speed(100)
    turtle.hideturtle()
    turtle.colormode(255)
<<<<<<< HEAD
    for j in range(5,0,-1):
        turtle.begin_fill()
        for i in range(3):
            turtle.pencolor(255-j*i*5,j*i*15,255-j*i*10)
            turtle.fillcolor(255-j*i*10,j*i*15,255-j*i*5)
            koch(200, j)
            turtle.right(120)
        turtle.end_fill()
=======
    turtle.begin_fill()
    for i in range(3):
        turtle.pencolor(20,150,255)
        turtle.fillcolor(50,200,255)
        koch(200, 4)
        turtle.right(120)
    turtle.end_fill()
>>>>>>> 2efa380157243de5d27fe6e3943e91a5a548e823
    turtle.done()


main()
